package com.dkm.ec.so.persistence.entity;
import java.util.Date;

import org.apache.commons.lang.builder.ToStringBuilder;

import com.dkm.base.api.annotion.IField;
import com.dkm.base.api.annotion.ITable;
import com.dkm.base.db.persistence.entity.AbstractPo;

/**
 * 对象功能:销售订单。 Tbl对象
 * 开发公司:dkm.com
 * 开发人员:ZHH
 * 创建时间:2017-05-19 15:50:21
 */
 @ITable(name="soEntity",code="t_so_entity")
public class SoEntityTbl extends AbstractPo<String>{
	@IField(name="id",column="id_")
	protected String  id; 		/*主键*/
	@IField(name="soNo",column="so_no_")
	protected String  soNo; 		/*订单编号*/
	@IField(name="soType",column="so_type_")
	protected String  soType; 		/*订单类型。sales=销售订单；*/
	@IField(name="isMain",column="is_main_")
	protected char  isMain; 		/*是否主订单.*/
	@IField(name="parentId",column="parent_id_")
	protected String  parentId; 		/*父订单 ID。针对拆单。*/
	@IField(name="prodQty",column="prod_qty_")
	protected Integer  prodQty; 		/*数量 - 产品数量*/
	@IField(name="subTotal",column="sub_total_")
	protected java.math.BigDecimal  subTotal; 		/*金额 - 产品小计。即购物车产品的折扣后总金额。即BI系统的实收金额。*/
	@IField(name="shippingAmount",column="shipping_amount_")
	protected java.math.BigDecimal  shippingAmount; 		/*金额 - 运费*/
	@IField(name="otherAmount",column="other_amount_")
	protected java.math.BigDecimal  otherAmount; 		/*其它费用*/
	@IField(name="otherComment",column="other_comment_")
	protected String  otherComment; 		/*其它费用说明*/
	@IField(name="total",column="total_")
	protected java.math.BigDecimal  total; 		/*订单总金额 = 产品小计 + 运费 + 其它费用*/
	@IField(name="discountAmount",column="discount_amount_")
	protected java.math.BigDecimal  discountAmount; 		/*金额 - 折扣金额（计算产品SKU销售价 减去 本表的产品小计得出）*/
	@IField(name="payedTotal",column="payed_total_")
	protected java.math.BigDecimal  payedTotal; 		/*产品已付金额*/
	@IField(name="payableTotal",column="payable_total_")
	protected java.math.BigDecimal  payableTotal; 		/*剩余应付金额*/
	@IField(name="soStatus",column="so_status_")
	protected String  soStatus; 		/*状态 - 订单状态。awaiting_pay=等待支付；cancelled=取消；payment_verify=等待支付确认；awaiting_ship=已支付，等待发货；shipped=已发货；completed=订单完成*/
	@IField(name="payTypeId",column="pay_type_id_")
	protected String  payTypeId; 		/*支付方式 ID*/
	@IField(name="payTypeName",column="pay_type_name_")
	protected String  payTypeName; 		/*支付方式名称*/
	@IField(name="payStatus",column="pay_status_")
	protected String  payStatus; 		/*状态 - 支付状态。unpaid=未支付；partial=部分支付；paid_off=已支付*/
	@IField(name="payTime",column="pay_time_")
	protected java.util.Date  payTime; 		/*支付完成时间*/
	@IField(name="reviewStatus",column="review_status_")
	protected String  reviewStatus; 		/*评价状态。none=未评价；partly=部分评价；all=全部评价*/
	@IField(name="createBy",column="create_by_")
	protected String  createBy; 		/*下单者ID*/
	@IField(name="createTime",column="create_time_")
	protected java.util.Date  createTime; 		/*下单时间*/
	@IField(name="updateBy",column="update_by_")
	protected String  updateBy; 		/*更新者*/
	@IField(name="updateTime",column="update_time_")
	protected java.util.Date  updateTime; 		/*更新时间*/
	@IField(name="isSkg",column="is_skg_")
	protected String  isSkg; 		/*是否运营商。N=否；Y=是。*/
	@IField(name="fromType",column="from_type_")
	protected String  fromType; 		/*来源类型。app_android=安卓app；app_ios=苹果app；web=Web前端注册；wap=wap端注册。admin=管理后台创建。*/
	@IField(name="isAllShip",column="is_all_ship_")
	protected char  isAllShip; 		/*是否全部交付快递*/
	@IField(name="couponCode",column="coupon_code_")
	protected String  couponCode; 		/*优惠券号码*/
	@IField(name="isDirect",column="is_direct_")
	protected char  isDirect; 		/*是否立即购买*/
	@IField(name="closeTime",column="close_time_")
	protected java.util.Date  closeTime; 		/*结束时间。订单状态到达终止状态（包括已取消、已完成、已退款等）时的时间。*/
	@IField(name="isHide",column="is_hide_")
	protected char  isHide; 		/*是否隐藏*/
	@IField(name="giftCardAmount",column="gift_card_amount_")
	protected java.math.BigDecimal  giftCardAmount; 		/*礼品卡支付金额*/
	@IField(name="lock",column="lock_")
	protected String  lock; 		/*操作锁，只允许同时一个人操作，locked or unlock*/
	@IField(name="isIn",column="is_in_")
	protected char  isIn; 		/*是否内购订单*/
	@IField(name="auditStatus",column="audit_status_")
	protected String  auditStatus; 		/*内购订单审核状态，notYet:还未审核；refuse:审核不通过；pass:审核通过*/
	@IField(name="leaveWord",column="leave_word_")
	protected String  leaveWord; 		/*留言*/
	@IField(name="isFreightInsurance",column="is_freight_Insurance_")
	protected String  isFreightInsurance; 		/*，locked or unlock*/
	@IField(name="shopId",column="shop_id_")
	protected String  shopId; 		/*店铺id*/
	@IField(name="isDel",column="is_del_")
	protected char  isDel; 		/*店铺id*/
	
	
	public char getIsDel() {
		return isDel;
	}
	public void setIsDel(char isDel) {
		this.isDel = isDel;
	}
	public String getShopId() {
		return shopId;
	}
	public void setShopId(String shopId) {
		this.shopId = shopId;
	}
	public String getLeaveWord() {
		return leaveWord;
	}
	public void setLeaveWord(String leaveWord) {
		this.leaveWord = leaveWord;
	}
	public String getIsFreightInsurance() {
		return isFreightInsurance;
	}
	public void setIsFreightInsurance(String isFreightInsurance) {
		this.isFreightInsurance = isFreightInsurance;
	}
	public void setId(String id) 
	{
		this.id = id;
	}
	/**
	 * 返回 主键
	 * @return
	 */
	public String getId() 
	{
		return this.id;
	}
	public void setSoNo(String soNo) 
	{
		this.soNo = soNo;
	}
	/**
	 * 返回 订单编号
	 * @return
	 */
	public String getSoNo() 
	{
		return this.soNo;
	}
	public void setSoType(String soType) 
	{
		this.soType = soType;
	}
	/**
	 * 返回 订单类型。sales=销售订单；
	 * @return
	 */
	public String getSoType() 
	{
		return this.soType;
	}
	public void setIsMain(char isMain) 
	{
		this.isMain = isMain;
	}
	/**
	 * 返回 是否主订单.
	 * @return
	 */
	public char getIsMain() 
	{
		return this.isMain;
	}
	public void setParentId(String parentId) 
	{
		this.parentId = parentId;
	}
	/**
	 * 返回 父订单 ID。针对拆单。
	 * @return
	 */
	public String getParentId() 
	{
		return this.parentId;
	}
	public void setProdQty(Integer prodQty) 
	{
		this.prodQty = prodQty;
	}
	/**
	 * 返回 数量 - 产品数量
	 * @return
	 */
	public Integer getProdQty() 
	{
		return this.prodQty;
	}
	public void setSubTotal(java.math.BigDecimal subTotal) 
	{
		this.subTotal = subTotal;
	}
	/**
	 * 返回 金额 - 产品小计。即购物车产品的折扣后总金额。即BI系统的实收金额。
	 * @return
	 */
	public java.math.BigDecimal getSubTotal() 
	{
		return this.subTotal;
	}
	public void setShippingAmount(java.math.BigDecimal shippingAmount) 
	{
		this.shippingAmount = shippingAmount;
	}
	/**
	 * 返回 金额 - 运费
	 * @return
	 */
	public java.math.BigDecimal getShippingAmount() 
	{
		return this.shippingAmount;
	}
	public void setOtherAmount(java.math.BigDecimal otherAmount) 
	{
		this.otherAmount = otherAmount;
	}
	/**
	 * 返回 其它费用
	 * @return
	 */
	public java.math.BigDecimal getOtherAmount() 
	{
		return this.otherAmount;
	}
	public void setOtherComment(String otherComment) 
	{
		this.otherComment = otherComment;
	}
	/**
	 * 返回 其它费用说明
	 * @return
	 */
	public String getOtherComment() 
	{
		return this.otherComment;
	}
	public void setTotal(java.math.BigDecimal total) 
	{
		this.total = total;
	}
	/**
	 * 返回 订单总金额 = 产品小计 + 运费 + 其它费用
	 * @return
	 */
	public java.math.BigDecimal getTotal() 
	{
		return this.total;
	}
	public void setDiscountAmount(java.math.BigDecimal discountAmount) 
	{
		this.discountAmount = discountAmount;
	}
	/**
	 * 返回 金额 - 折扣金额（计算产品SKU销售价 减去 本表的产品小计得出）
	 * @return
	 */
	public java.math.BigDecimal getDiscountAmount() 
	{
		return this.discountAmount;
	}
	public void setPayedTotal(java.math.BigDecimal payedTotal) 
	{
		this.payedTotal = payedTotal;
	}
	/**
	 * 返回 产品已付金额
	 * @return
	 */
	public java.math.BigDecimal getPayedTotal() 
	{
		return this.payedTotal;
	}
	public void setPayableTotal(java.math.BigDecimal payableTotal) 
	{
		this.payableTotal = payableTotal;
	}
	/**
	 * 返回 剩余应付金额
	 * @return
	 */
	public java.math.BigDecimal getPayableTotal() 
	{
		return this.payableTotal;
	}
	public void setSoStatus(String soStatus) 
	{
		this.soStatus = soStatus;
	}
	/**
	 * 返回 状态 - 订单状态。awaiting_pay=等待支付；cancelled=取消；payment_verify=等待支付确认；awaiting_ship=已支付，等待发货；shipped=已发货；completed=订单完成
	 * @return
	 */
	public String getSoStatus() 
	{
		return this.soStatus;
	}
	public void setPayTypeId(String payTypeId) 
	{
		this.payTypeId = payTypeId;
	}
	/**
	 * 返回 支付方式 ID
	 * @return
	 */
	public String getPayTypeId() 
	{
		return this.payTypeId;
	}
	public void setPayTypeName(String payTypeName) 
	{
		this.payTypeName = payTypeName;
	}
	/**
	 * 返回 支付方式名称
	 * @return
	 */
	public String getPayTypeName() 
	{
		return this.payTypeName;
	}
	public void setPayStatus(String payStatus) 
	{
		this.payStatus = payStatus;
	}
	/**
	 * 返回 状态 - 支付状态。unpaid=未支付；partial=部分支付；paid_off=已支付
	 * @return
	 */
	public String getPayStatus() 
	{
		return this.payStatus;
	}
	public void setPayTime(java.util.Date payTime) 
	{
		this.payTime = payTime;
	}
	/**
	 * 返回 支付完成时间
	 * @return
	 */
	public java.util.Date getPayTime() 
	{
		return this.payTime;
	}
	public void setReviewStatus(String reviewStatus) 
	{
		this.reviewStatus = reviewStatus;
	}
	/**
	 * 返回 评价状态。none=未评价；partly=部分评价；all=全部评价
	 * @return
	 */
	public String getReviewStatus() 
	{
		return this.reviewStatus;
	}
	public void setCreateBy(String createBy) 
	{
		this.createBy = createBy;
	}
	/**
	 * 返回 下单者ID
	 * @return
	 */
	public String getCreateBy() 
	{
		return this.createBy;
	}
	public void setCreateTime(java.util.Date createTime) 
	{
		this.createTime = createTime;
	}
	/**
	 * 返回 下单时间
	 * @return
	 */
	public java.util.Date getCreateTime() 
	{
		return this.createTime;
	}
	public void setUpdateBy(String updateBy) 
	{
		this.updateBy = updateBy;
	}
	/**
	 * 返回 更新者
	 * @return
	 */
	public String getUpdateBy() 
	{
		return this.updateBy;
	}
	public void setUpdateTime(java.util.Date updateTime) 
	{
		this.updateTime = updateTime;
	}
	/**
	 * 返回 更新时间
	 * @return
	 */
	public java.util.Date getUpdateTime() 
	{
		return this.updateTime;
	}
	public void setIsSkg(String isSkg) 
	{
		this.isSkg = isSkg;
	}
	/**
	 * 返回 是否运营商。N=否；Y=是。
	 * @return
	 */
	public String getIsSkg() 
	{
		return this.isSkg;
	}
	public void setFromType(String fromType) 
	{
		this.fromType = fromType;
	}
	/**
	 * 返回 来源类型。app_android=安卓app；app_ios=苹果app；web=Web前端注册；wap=wap端注册。admin=管理后台创建。
	 * @return
	 */
	public String getFromType() 
	{
		return this.fromType;
	}
	public void setIsAllShip(char isAllShip) 
	{
		this.isAllShip = isAllShip;
	}
	/**
	 * 返回 是否全部交付快递
	 * @return
	 */
	public char getIsAllShip() 
	{
		return this.isAllShip;
	}
	public void setCouponCode(String couponCode) 
	{
		this.couponCode = couponCode;
	}
	/**
	 * 返回 优惠券号码
	 * @return
	 */
	public String getCouponCode() 
	{
		return this.couponCode;
	}
	public void setIsDirect(char isDirect) 
	{
		this.isDirect = isDirect;
	}
	/**
	 * 返回 是否立即购买
	 * @return
	 */
	public char getIsDirect() 
	{
		return this.isDirect;
	}
	public void setCloseTime(java.util.Date closeTime) 
	{
		this.closeTime = closeTime;
	}
	/**
	 * 返回 结束时间。订单状态到达终止状态（包括已取消、已完成、已退款等）时的时间。
	 * @return
	 */
	public java.util.Date getCloseTime() 
	{
		return this.closeTime;
	}
	public void setIsHide(char isHide) 
	{
		this.isHide = isHide;
	}
	/**
	 * 返回 是否隐藏
	 * @return
	 */
	public char getIsHide() 
	{
		return this.isHide;
	}
	public void setGiftCardAmount(java.math.BigDecimal giftCardAmount) 
	{
		this.giftCardAmount = giftCardAmount;
	}
	/**
	 * 返回 礼品卡支付金额
	 * @return
	 */
	public java.math.BigDecimal getGiftCardAmount() 
	{
		return this.giftCardAmount;
	}
	public void setLock(String lock) 
	{
		this.lock = lock;
	}
	/**
	 * 返回 操作锁，只允许同时一个人操作，locked or unlock
	 * @return
	 */
	public String getLock() 
	{
		return this.lock;
	}
	public void setIsIn(char isIn) 
	{
		this.isIn = isIn;
	}
	/**
	 * 返回 是否内购订单
	 * @return
	 */
	public char getIsIn() 
	{
		return this.isIn;
	}
	public void setAuditStatus(String auditStatus) 
	{
		this.auditStatus = auditStatus;
	}
	/**
	 * 返回 内购订单审核状态，notYet:还未审核；refuse:审核不通过；pass:审核通过
	 * @return
	 */
	public String getAuditStatus() 
	{
		return this.auditStatus;
	}
	/**
	 * @see java.lang.Object#toString()
	 */
	public String toString() 
	{
		return new ToStringBuilder(this)
		.append("id", this.id) 
		.append("soNo", this.soNo) 
		.append("soType", this.soType) 
		.append("isMain", this.isMain) 
		.append("parentId", this.parentId) 
		.append("prodQty", this.prodQty) 
		.append("subTotal", this.subTotal) 
		.append("shippingAmount", this.shippingAmount) 
		.append("otherAmount", this.otherAmount) 
		.append("otherComment", this.otherComment) 
		.append("total", this.total) 
		.append("discountAmount", this.discountAmount) 
		.append("payedTotal", this.payedTotal) 
		.append("payableTotal", this.payableTotal) 
		.append("soStatus", this.soStatus) 
		.append("payTypeId", this.payTypeId) 
		.append("payTypeName", this.payTypeName) 
		.append("payStatus", this.payStatus) 
		.append("payTime", this.payTime) 
		.append("reviewStatus", this.reviewStatus) 
		.append("createBy", this.createBy) 
		.append("createTime", this.createTime) 
		.append("updateBy", this.updateBy) 
		.append("updateTime", this.updateTime) 
		.append("isSkg", this.isSkg) 
		.append("fromType", this.fromType) 
		.append("isAllShip", this.isAllShip) 
		.append("couponCode", this.couponCode) 
		.append("isDirect", this.isDirect) 
		.append("closeTime", this.closeTime) 
		.append("isHide", this.isHide) 
		.append("giftCardAmount", this.giftCardAmount) 
		.append("lock", this.lock) 
		.append("isIn", this.isIn) 
		.append("auditStatus", this.auditStatus) 
		.toString();
	}
}